home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Game Master (3rd Edition)
/
The Game Master 3rd edition.iso
/
files
/
educames
/
spelling
/
spell.bas
< prev
next >
Wrap
BASIC Source File
|
1983-10-16
|
8KB
|
263 lines
10 KEY OFF:CLS
20 SCREEN 0
30 WIDTH 40
40 PRINT"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░"
50 PRINT"░┌───────────────────────────────────┐░"
60 PRINT"░│ │░"
70 PRINT" 5019-A.BAS "
80 PRINT" SPELL "
90 PRINT" "
100 PRINT" "
110 PRINT"░│ BROUGHT TO YOU BY THE MEMBERS OF │░"
120 PRINT"░│ ▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄▄ ▄▄▄▄▄ │░"
130 PRINT"░│ █ █ █ █ █ █ │░"
140 PRINT"░│ █ █▄▄▄█ █ █ █ │░"
150 PRINT"░│ █ █ █ █ █ │░"
160 PRINT"░│ ▄▄█▄▄ █ █▄▄▄▄ █▄▄▄█ │░"
170 PRINT"░│ │░"
180 PRINT"░│ International PC Owners │░"
190 PRINT"░│ │░"
200 PRINT"░│P.O. Box 10426, Pittsburgh PA 15234│░"
210 PRINT"░│ │░"
220 PRINT"░└───────────────────────────────────┘░"
230 PRINT"░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░"
240 PRINT
250 PRINT " PRESS ANY KEY TO CONTINUE
260 A$=INKEY$: IF A$="" THEN 260
270 WIDTH 80
280 CLS
1000 'This program is a program that I
1010 '
1020 'found in a very good book called
1030 '
1040 '100 Ready-To-Run Programs &
1050 '
1060 'Subroutines For The I.B.M. P.C.
1070 '
1080 'by Jeff Bretz & John Clark Craig
1090 '
1100 'I then took the Dolch Word List
1110 '
1120 'and added to the program.
1130 '
1140 'The Dolch list has been the
1150 '
1160 'standard list of the basic words
1170 '
1180 'a child should be able to sight
1190 '
1200 'read for many years.
1210 '
1220 'I also added several other
1230 '
1240 'things to make the program
1250 '
1260 'more interasting.
1270 '
1280 '
1290 'I hope you find this program as
1300 '
1310 'useful as I have.
1320 '
1330 'If you have any ideas on how to
1340 '
1350 'inprove this program, or you
1360 '
1370 'have an educational program of
1380 '
1390 'your own, please send it to me
1400 '
1410 'Robert West, 655 S. Chubb Dr.
1420 '
1430 'Doylestown, Pa. 18901
1440 '
1450 'Thanks
2000 REM SPELL
2010 CLEAR
2020 SCREEN 1
2030 COLOR 0,0
2040 KEY OFF
2050 CLS
2060 LOCATE 10,19
2070 PRINT "SPELL
2080 FOR DELTA = 3 TO 77 STEP 5
2090 LINE (120-DELTA,70-DELTA)-(205+DELTA,80+DELTA),,B
2100 NEXT DELTA
2110 BEEP:LOCATE 23,7:INPUT "WHAT IS YOUR NAME ";NAM$
2120 GOSUB 3240
2130 LOCATE 23,7:BEEP:INPUT "WHAT LIST WOULD YOU LIKE 1-37";L
2140 LOCATE 23,7:PRINT " "
2150 LOCATE 23,7:BEEP:INPUT "HOW MANY WORDS 1-10";C
2160 DIM A$(C),SCORE(C),TH$(400)
2170 FOR X =1 TO (L-1)*10
2180 READ TH$
2190 NEXT X
2200 FOR I = 1 TO C
2210 SCORE(I) = 2
2220 NEXT I
2230 CLS
2240 COLOR 0,1
2250 FOR I = 1 TO C
2260 READ CAP$
2270 A$(I) = CAP$
2280 NEXT I
2290 CLS
2300 COLOR 0,0
2310 S=LEN(NAM$)
2320 R=(S/2)
2330 PRINT TAB(8-R)"THESE ARE YOUR WORDS ";NAM$
2340 PRINT :PRINT
2350 FOR I=1 TO C
2360 PRINT A$(I),
2370 NEXT I
2380 FOR I=1 TO 5000:NEXT I
2390 CLS
2400 LET Z$ =TIME$
2410 LET F$=MID$(Z$,7,2)
2420 LET Z=VAL (F$)
2430 RANDOMIZE (Z)
2440 PTR = INT(RND*C+1)
2450 J = 0
2460 IF SCORE(PTR) THEN 2520
2470 PTR = PTR MOD C + 1
2480 J = J+1
2490 IF J > C THEN 3110
2500 GOTO 2460
2510 '
2520 CLS
2530 COLOR 0,1
2540 LOCATE 13,20 - LEN(A$(PTR)) / 2
2550 PRINT A$(PTR);
2560 FOR I = 9 TO 99 STEP 3
2570 LINE (0,99-I)-(319,99-I),2
2580 LINE (0,99+I)-(319,99+I),2
2590 NEXT I
2600 IF SCORE(PTR) = 2 THEN GOSUB 3360
2610 CLS
2620 COLOR 0,1
2630 LOCATE 9,7
2640 PRINT "NOW TRY TO SPELL IT ...
2650 LOCATE 14,17 - LEN(A$(PTR)) /2:SOUND 2000,1
2660 IF LEN(INKEY$) THEN 2660
2670 INPUT CAP$
2680 IF CAP$ = A$(PTR) THEN 2860
2690 '
2700 ' WHOOPS, BETTER LUCK NEXT TIME
2710 CLS
2720 LOCATE 14,9
2730 SOUND 50,5
2740 PRINT "SORRY ...... ";A$(PTR);
2750 LOCATE 16,17
2760 INPUT CAP$
2770 IF CAP$ <> A$(PTR) THEN GOTO 2710
2780 CLS:LOCATE 14,9:PRINT "NOW SPELL IT...."
2790 LOCATE 16,17
2800 INPUT CAP$
2810 IF CAP$ <> A$(PTR) THEN GOTO 2710
2820 SCORE(PTR) =2
2830 GOTO 2390
2840 '
2850 'WOW, SIT BACK AND ENJOY SUCESS FOR A SPELL
2860 CLS
2870 COLOR 0,0
2880 LOCATE 12,14:SOUND 300,3
2890 H=INT(RND*5+1)
2900 ON H GOTO 2910,2920,2930,2940,2950
2910 PRINT " VERY GOOD ":GOTO 2960
2920 PRINT "THAT'S RIGHT":GOTO 2960
2930 PRINT " SMARTY ":GOTO 2960
2940 PRINT " GREAT":GOTO 2960
2950 PRINT " GENIUS":GOTO 2960
2960 '
2970 LOCATE 14,20-R:PRINT NAM$;"!
2980 FOR I = 33 TO 123 STEP 5
2990 X1 = 160 - 3 * I
3000 X2 = 160 + 3 * I
3010 Y1 = 99 - I
3020 Y2 = 99 + I
3030 LINE (X1,99)-(160,Y1)
3040 LINE - (X2,99)
3050 LINE - (160,Y2)
3060 LINE -(X1,99)
3070 NEXT I
3080 SCORE(PTR) = SCORE(PTR) - 1
3090 GOTO 2390
3100 '
3110 CLS
3120 LOCATE 1,1
3130 PRINT "YOU DID IT! NOW YOU KNOW HOW TO SPELL
3140 PRINT "ALL THESE WORDS...",,,,,
3150 FOR I = 1 TO C
3160 PRINT A$(I),
3170 NEXT I
3180 PRINT
3190 PRINT
3200 PRINT TAB(11)"CONGRATULATIONS !!
3210 PRINT TAB(11)STRING$(17,"_");
3220 LOCATE 22
3230 END
3240 ' CHANGE LITTLE LETTERS TO CAPITALS
3250 FOR CH = 1 TO LEN(NAM$)
3260 CH$=MID$(NAM$,CH,1)
3270 FT = ASC(CH$)
3280 IF FT<96 THEN GOTO 3340
3290 IF FT>123 THEN GOTO 3340
3300 FT=FT-32
3310 CH$=CHR$(FT)
3320 MID$(NAM$,CH,1)=CHR$(ASC(CH$))
3330 NEXT CH
3340 RETURN
3350 'SUBROUTINE, DELAY FOR AWHILE'''''
3360 FOR DELAY = 1 TO 777
3370 NEXT DELAY
3380 RETURN
3390 DATA little,down,go,here,it
3400 DATA big,a,come,funny,help
3410 DATA jump,in,and,is,I
3420 DATA blue,for,away,can,find
3430 DATA you,red,the,to,where
3440 DATA my,look,play,see,three
3450 DATA two,we,yellow,up,make
3460 DATA not,said,me,one,run
3470 DATA went,no,they,good,came,she,ate,be,but,all,saw
3480 DATA now,please,ran,with,what,so,get,into,news,am,saw
3490 DATA,at,black,did,on,white,do,like,under,too,who
3500 DATA that,say,there,out,pretty,will,this,was,eat,he
3510 DATA ride,yes,are,brown,four,must,well,have,soon,our
3520 DATA flower,night,top,car,game,paper,toy,cat,garden,party
3530 REM nouns
3540 DATA now,please,ran,with,what,so,get,into,news,am
3550 DATA,at,black,did,on,white,do,like,under,too,who
3560 DATA table,bread,fish,name,thing,brother,floor,nest,time,cake
3570 REM nouns
3580 DATA,saw,want,apple,day,home,school,baby,dog,horse,seed
3590 DATA back,doll,house,sheep,ball,door,kitty,shoe,bear,duck
3600 REM grade 1
3610 DATA know,after,every,an,going,him,live,could,of,again
3620 DATA thank,just,them,had,put,once,fly,has,how,any
3630 DATA give,walk,let,open,old,take,think,ask,may,over
3640 DATA round,her,were,then,some,by,from,stop,when,his
3650 ' nouns
3660 DATA as,kitty,shoe,bear,duck,leg,sister,bed,egg,letter
3670 DATA snow,bell,eye,man,song,bird,farm,men,squirrel,birthday
3680 ' grade 2
3690 DATA sleep,don't,first,read,been,write,around,does,goes,its
3700 DATA your,many,wish,because,buy,cold,call,made,very,found
3710 DATA tell,their,why,best,use,these,right,off,always,sit
3720 DATA wash,green,would,five,work,gave,or,sing,us,fast
3730 DATA which,both,upon,befor,those,pull,farmer,milk,stick,boat
3740 ' more nouns also 4 in top line
3750 DATA tree,chair,girl,picture,watch,chicken,good-by,pig,water,children
3760 DATA father,money,street,box,feet,morning,sun,boy,fire,mother
3770 ' grade 3
3780 DATA carry,draw,clean,fall,if,together,laugh,much,cut,about
3790 DATA hold,got,bring,hot,kind,long,done,eight,hurt,keep
3800 DATA snow,light,myself,seven,grow,today,better,full,never,only
3810 DATA own,six,shall,ten,start,warm,pick,drink,far,try
3820 ' more nouns
3830 DATA flower,night,top,car,game,paper,toy,cat,garden,party
3840 DATA tree,chair,girl,picture,watch,chicken,good-by,pig,water,children
3850 DATA grass,rabbit,way,christmas,ground,rain,wind,coat,hand,ring
3860 DATA window,corn,head,robin,wood,cow,hill,Santa Claus,squirrel,school
3870 DATA little,down,go,here,it